package com.ch01.ex22;

/**
 * Created by zc on 2016/1/27.
 */
public class Main {

    public static void main(String[] args){
        MyThreadGroup threadGroup =  new MyThreadGroup("MyThreadGroup");
        Task task = new Task();

        for(int i=0; i<2; i++){
            Thread thread = new Thread(threadGroup, task);
            thread.start();
        }
    }

}
